package commodity;


import java.math.BigDecimal;
import java.util.Objects;

//商品
public class Commodity {
    private String name;   //名称
    private BigDecimal price1;
    private BigDecimal price;  //价格


    public Commodity(String name, BigDecimal price) {
        this.name = name;
        this.price = price;
//        this.stock = stock;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}

